package com.xinya.taobaosale.model.api;

import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * @ClassName: ApiHelper$
 * @Description: java类作用描述
 * @Author: xinya
 * @CreateDate: 2021/2/1$ 20:30$
 * @UpdateRemark: 更新内容
 * @Version: 1.0
 */
public class ApiHelper {
    public static ApiHelper INST = new ApiHelper();
    private static final String BASE_URL = "https://api.sunofbeach.net/shop/";
    public final ISunOfBeach mService;

    private ApiHelper() {
        Retrofit retrofit = new Retrofit.Builder()
                .baseUrl(BASE_URL)
                .addConverterFactory(GsonConverterFactory.create())
                .build();

        mService = retrofit.create(ISunOfBeach.class);

    }


}
